package com.jt.demo3;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan("com.jt.demo3")
@Configuration
public class SpringCarConfig {
    @Bean
    public Cat cat(){
        return new Cat();
    }

}
